public class test {
    public static void main(String[] args) {
        //1、类变量的用法
        //类名.类变量(推荐这种)
        Studnet.name  = "张磊";

        //对象.类变量(不推荐)
        Studnet s1 = new Studnet();
        s1.name = "张三";
        System.out.println(s1.name);

        Studnet s2 = new Studnet();
        s2.name = "李四";
        System.out.println(s2.name);

    }
}
